package MyMap;

import java.util.HashMap;
import java.util.Map;

/**
 * @author gao
 * @date 2025/6/3 16:55)
 */

public class Solution6 {
    public static void main(String[] args) {
        Map<Integer, String> map = new HashMap<>();//基于哈希表实现的映射关系

        map.put(1, "one");//添加元素
        map.put(1, "one");
        map.put(1, "one");
        map.put(2, "two");
        map.put(3, "three");
        map.put(4, "four");
        map.put(5, "five");
        map.put(6, "six");
        map.put(7, "seven");
        System.out.println(map);
    }
}
